/*
 * @ShutdownHook.java   1.0 2008/07/28
 *
 * Copyright 2008 Web & Zen Multimedia, All rights reserved.
 * Use is subject to license terms.
 */
package it.wzm.lightweightlog;

/**
 * Our shut down hook accessible only from package
 * @author Leonardo Celati
 */
class ShutdownHook extends Thread {
	
	public ShutdownHook() {
    }
	
    public void run() {
    	// cleanup...but only if we are not already in shutdown mode...
    	if (!LogFactory.getStatus().equals("SHUTDOWN") )
    		LogFactory.shutdown();
    }
}
